<template>
  <div class="app-container">
    <el-tabs v-model="activeTab" @tab-click="handleClick">
      <el-tab-pane label="会员概况" name="memberOverview">
        <memberOverview v-if="activeTab === 'memberOverview'" />
      </el-tab-pane>
      <el-tab-pane label="会员列表" name="memberList">
        <memberList v-if="activeTab === 'memberList'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import memberOverview from '@/views/user/member-list/member-overview'
import memberList from '@/views/user/member-list/member-list'
export default {
  name: 'index',
  components: {
    // 调整积分
    memberOverview,
    memberList
  },
  data() {
    return {
      activeTab: 'memberOverview'
    }
  },
  methods: {
    handleClick({ name }) {
      this.activeTab = name
    }
  }
}
</script>

<style lang="scss" scoped>
/deep/.el-tabs__header {
  padding: 10px;
  background-color: #ffffff;
}
</style>
